//消息头部
import React, {Component} from 'react'
import {
    View,
    Text,
} from 'react-native';

import {newsinc_Style as styles} from '../../../../../styles';
import fmt from '../../../../util/fmtDateUtil';

var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;

export default class Cnewsin_body extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View style={styles.newsin_a}>
                <View style={[styles.newsin_gray, {width: width * 0.89}]}>
                    <Text style={styles.newsin_text}>{this.props.msg.msgContent}</Text>
                    <Text style={styles.newsin_time}>{fmt(this.props.msg.msgTime, "yyyy-MM-dd")}</Text>
                </View>
            </View>
        )
    }
}